package cn.xyhelp.shop.repository.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("stock_item")
public class StockItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 序列号，物料唯一标识
     */
    @TableField("serial_number")
    private String serialNumber;

    /**
     * 状态，是否已售
     */
    @TableField("status")
    private Integer status;

    /**
     * 进价
     */
    @TableField("purchase_price")
    private Long purchasePrice;

    /**
     * 售价
     */
    @TableField("sell_price")
    private Long sellPrice;

    /**
     * 销售时间
     */
    @TableField("sell_time")
    private Date sellTime;

    @TableField("stock_unit_id")
    private Integer stockUnitId;


}
